var express = require('express');
const Message = require('../utils/message')

var router = express.Router();
const user = require('../dao/user_dao')

/* GET home page. */


/* GET users listing. */
router.get('/', function(req, res, next) {

  res.send('users进入路由根目录');

});

// 查询
router.get('/findAll', function(req, res) {
  user.getAllData(req,res)
});

router.post('/login',function(req,res) {
  user.Login(req,res)
})

module.exports = router;

